-
Notifications
You must be signed in to change notification settings - Fork 14
Reorganize the contents of a few proto files #331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorganize the contents of a few proto files #331
Conversation
This commit reorganizes the contents of the following proto files: - `communication_components.proto` - `electrical_components.proto` - `sensors.proto` The reorganization includes: - Moving the enums to the top of the file for better visibility and organization. - Sequencing the messages in an arbitrary logical order, ensuring that related messages are grouped together. Signed-off-by: Tiyash Basu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR reorganizes proto files to improve clarity and maintainability by moving enums to the top and reordering related messages.
- Enums are now positioned before message definitions for better visibility.
- Duplicate definitions have been removed and messages reorganized to group related data together.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| proto/frequenz/api/common/v1/microgrid/sensors/sensors.proto | Reordered enums and messages; consolidated SensorData definition and related enums for consistency. |
| proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto | Reordered messages and shifted MetricConfigBounds, ElectricalComponent, and related types to a consistent order. |
| proto/frequenz/api/common/v1/microgrid/communication_components/communication_components.proto | Reorganized enum and message definitions; updated comments to clarify snapshot semantics and component categorization. |
proto/frequenz/api/common/v1/microgrid/communication_components/communication_components.proto
Outdated
Show resolved
Hide resolved
Signed-off-by: Tiyash Basu <[email protected]>
Signed-off-by: Tiyash Basu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR reorganizes proto files by moving enum definitions to the top and sequencing related message types for clarity without changing any message schemas.
- Relocated enum declarations ahead of dependent messages in all three files.
- Grouped related messages (e.g., metadata, component, data snapshots) together for logical cohesion.
- Removed duplicate definitions to maintain a single source of truth per type.
llucax
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't look to the diff as it is very hard to read, so I assume no code was changed, only things were moved around. I looked at the resulting files and LGTM.
This commit reorganizes the contents of the following proto files:
communication_components.protoelectrical_components.protosensors.protoThe reorganization includes:
This PR does not change the protobuf messages themselves in any way.